Generating a runtime error on subclassing of builtins

As discussed in https://github.com/munificent/wren/issues/70, it is not allowed to subclass built-in types.
This commit is contained in:
Peter Reijnders
2015-02-25 20:13:37 +01:00
parent 3802609644
commit f05d6143f5
9 changed files with 44 additions and 3 deletions

View File

@ -0,0 +1,2 @@
class SubString is String {} // expect runtime error: Class 'SubString' may not subclass a built-in