Don't allow method names to overflow.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// Don't want to actually execute it.
|
||||
if (false) {
|
||||
0.thisIsAMethodNameThatExceedsTheMaximumNameLengthOf64CharactersBy1 // expect error
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Foo {
|
||||
thisHasAMethodNameThatIsExactly64CharactersLongWhichIsTheMaximum {
|
||||
return "result"
|
||||
}
|
||||
}
|
||||
|
||||
io.write(Foo.new.thisHasAMethodNameThatIsExactly64CharactersLongWhichIsTheMaximum) // expect: result
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
thisIsAMethodNameThatExceedsTheMaximumNameLengthOf64CharactersBy1 { // expect error
|
||||
"body"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user