Skip to content

Instantly share code, notes, and snippets.

@kt3k
Created August 13, 2013 14:37
Show Gist options
  • Save kt3k/6221753 to your computer and use it in GitHub Desktop.
Save kt3k/6221753 to your computer and use it in GitHub Desktop.
groovy test
kt3k:groovy kt3k$ cat test2.groovy
println 'a'*2
kt3k:groovy kt3k$ groovy test2.groovy
aa
kt3k:groovy kt3k$ cat test.groovy
println 2*'a'
kt3k:groovy kt3k$ groovy test.groovy
Caught: groovy.lang.MissingMethodException: No signature of method: java.lang.Integer.multiply() is applicable for argument types: (java.lang.String) values: [a]
Possible solutions: multiply(java.lang.Number), multiply(java.lang.Character)
groovy.lang.MissingMethodException: No signature of method: java.lang.Integer.multiply() is applicable for argument types: (java.lang.String) values: [a]
Possible solutions: multiply(java.lang.Number), multiply(java.lang.Character)
at test.run(test.groovy:1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment