Skip to content

Commit

Permalink
More bugs...
Browse files Browse the repository at this point in the history
--HG--
branch : com.mozilla.es4.smlnj
extra : convert_revision : 580817505be99c57400116c820ab788935ff7596
  • Loading branch information
[email protected] committed Apr 26, 2007
1 parent b0e8c7b commit bae288d
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions BUGS
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,53 @@ will be more streamlined. --lars

(Causes one Array test to fail.)


#000A 2007-04-27 / lth

Type annotations on parameters of methods and functions don't force
coercions or errors.

>> function f(a : string) { print(typeof a) }
>> f(1)
number


#000B 2007-04-27 / lth

Type annotations on properties of classes don't force coercion of
undefined to that type upon initialization.

#000C 2007-04-27 / lth

Instance "const" properties without an initializer are initialized anyway and
are then not changeable:

>> class D { function D() { xyzzy=true } public const xyzzy : boolean }
>> y = new D
[object Object]
>> y.xyzzy
null
>> y.xyzzy = false
false
>> y.xyzzy
null

(Also without the type annotation:

>> class C { function C() { xyzzy=true } public const xyzzy }
>> w = new C
[object Object]
>> w.xyzzy
>> w.xyzzy = 10
10
>> w.xyzzy
>>

#000D 2007-04-27 / lth

The 'cast' operator is unimplemented


#000E 2007-04-27 / lth

The 'to' operator is unimplemented

0 comments on commit bae288d

Please sign in to comment.