Changed phrasing, fixed and added a test.

This commit is contained in:
Kyle Marek-Spartz
2014-02-23 21:53:49 -06:00
parent 9f05e0d045
commit df4c1fa6b2
4 changed files with 6 additions and 3 deletions

View File

@ -4,4 +4,4 @@ class Foo {
class Bar is Foo {}
Bar.methodOnFoo // expect runtime error: Receiver does not implement method 'methodOnFoo'.
Bar.methodOnFoo // expect runtime error: Bar metaclass does not implement method 'methodOnFoo'.

View File

@ -1,3 +1,3 @@
class Foo {}
(new Foo).someUnknownMethod // expect runtime error: Receiver does not implement method 'someUnknownMethod'.
(new Foo).someUnknownMethod // expect runtime error: Foo does not implement method 'someUnknownMethod'.

View File

@ -0,0 +1,3 @@
class Foo {}
Foo.bar // expect runtime error: Foo metaclass does not implement method 'bar'.