Skip to content

Instantly share code, notes, and snippets.

@rafakob
Created December 1, 2017 11:35
Show Gist options
  • Save rafakob/f0d49f044f91a908d69ec351ed91526c to your computer and use it in GitHub Desktop.
Save rafakob/f0d49f044f91a908d69ec351ed91526c to your computer and use it in GitHub Desktop.

Revisions

  1. rafakob created this gist Dec 1, 2017.
    15 changes: 15 additions & 0 deletions Test.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    | Condition | Result |
    |-------------------|--------------|
    | "test" is String | true |
    | "test" is String? | true |
    | null is String | false |
    | null is String? | true |
    | | |
    | "test" as String | ok |
    | "test" as String? | ok |
    | 123 as String | throw |
    | 123 as String? | throw |
    | null as String | throw |
    | null as String? | returns null |
    | null as? String | returns null |
    | null as? String? | returns null |