Created
December 1, 2017 11:35
-
-
Save rafakob/f0d49f044f91a908d69ec351ed91526c to your computer and use it in GitHub Desktop.
Revisions
-
rafakob created this gist
Dec 1, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 |