test/script/basic/list.js.EXPECTED

Wed, 03 Jul 2013 15:46:03 +0200

author
lagergren
date
Wed, 03 Jul 2013 15:46:03 +0200
changeset 407
961cffae0828
parent 3
da1e581c933b
child 830
3cb09c560108
permissions
-rw-r--r--

8019811: Static calls - self referential functions needed a return type conversion if they were specialized, as they can't use the same mechanism as indy calls
Reviewed-by: sundar, jlaskey

     1 l.class.name=java.util.ArrayList
     2 l.length=undefined
     3 l.size()=2
     4 l[0]=foo
     5 l[1]=bar
     6 --for each begin--
     7 foo
     8 bar
     9 --for each end--
    10 l[0]=foo
    11 l[1]=a
    12 l[0.9]=null
    13 l['blah']=null
    14 l[size_name]()=2
    15 java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
    16 java.lang.IndexOutOfBoundsException: Index: Infinity, Size: 2
    17 java.lang.IndexOutOfBoundsException: Index: -Infinity, Size: 2

mercurial