Created
August 26, 2016 20:22
-
-
Save ain322/88867523d5c86fb9926269d1d7d2401c to your computer and use it in GitHub Desktop.
This file contains 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 characters
def str = "Double quoted string" | |
assert !(str instanceof GString) | |
assert str instanceof String | |
def str2 = "Double ${str} string" | |
assert str2 instanceof GString | |
assert !(str2 instanceof String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment