Skip to content

Instantly share code, notes, and snippets.

@ain322
Created August 26, 2016 20:22
Show Gist options
  • Save ain322/88867523d5c86fb9926269d1d7d2401c to your computer and use it in GitHub Desktop.
Save ain322/88867523d5c86fb9926269d1d7d2401c to your computer and use it in GitHub Desktop.
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