Add 'Object' built-in type
This commit is contained in:
parent
425890a6fc
commit
9c51cbc93f
3 changed files with 9 additions and 2 deletions
|
|
@ -13,10 +13,17 @@ let
|
|||
|
||||
var c : int := "This is an \"int\""
|
||||
/* ^ type.builtin (not sure why it isn't 'type')*/
|
||||
|
||||
var d : Object := nil
|
||||
/* ^ type.builtin */
|
||||
|
||||
type Object = int
|
||||
in
|
||||
let
|
||||
var c : int := "This is an int"
|
||||
/* ^ type.builtin (not sure why it isn't 'type')*/
|
||||
var d : Object := "This is an object"
|
||||
/* ^ type.builtin (not sure why it isn't 'type')*/
|
||||
in
|
||||
end;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ let
|
|||
class A extends Object {}
|
||||
/* <- keyword */
|
||||
/* ^ keyword */
|
||||
/* ^ type */
|
||||
/* ^ type.builtin */
|
||||
|
||||
type B = class extends A {
|
||||
/* ^ keyword */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue