|
Revision 2653, 1.0 kB
(checked in by EricAllen, 4 months ago)
|
Brought automatic getter generation online.
Moved the getter desugar to after object expression desugaring.
Added a selectField method to FObject so that desugared fields can be accessed through the native interface.
Fixed an initialization bug in FreeNameCollection?.
Fixed an erroneous called to a non-existent field in GeneratorNullPointer?.fss.
Fixed getter accesses in traits in SkipList?.fss.
Fixed the -unMangle flag to unparse to deal with identifiers that have gone through multiple desugarings.
|
| Line | |
|---|
| 1 |
(******************************************************************************* |
|---|
| 2 |
Copyright 2008 Sun Microsystems, Inc., |
|---|
| 3 |
4150 Network Circle, Santa Clara, California 95054, U.S.A. |
|---|
| 4 |
All rights reserved. |
|---|
| 5 |
|
|---|
| 6 |
U.S. Government Rights - Commercial software. |
|---|
| 7 |
Government users are subject to the Sun Microsystems, Inc. standard |
|---|
| 8 |
license agreement and applicable provisions of the FAR and its supplements. |
|---|
| 9 |
|
|---|
| 10 |
Use is subject to license terms. |
|---|
| 11 |
|
|---|
| 12 |
This distribution may include materials developed by third parties. |
|---|
| 13 |
|
|---|
| 14 |
Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered |
|---|
| 15 |
trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|---|
| 16 |
******************************************************************************) |
|---|
| 17 |
|
|---|
| 18 |
component GeneratorNullPointer |
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
import Set.{...} |
|---|
| 22 |
export Executable |
|---|
| 23 |
|
|---|
| 24 |
f(x: Generator[\Char\]): ZZ32 = 0 |
|---|
| 25 |
f[\A,B\](x: A -> B): ZZ32 = 1 |
|---|
| 26 |
f(x: Any): ZZ32 = 1000 |
|---|
| 27 |
|
|---|
| 28 |
run(args:String...) = do |
|---|
| 29 |
(* println(f(("The").seq)) There is no .seq getter! *) |
|---|
| 30 |
println(f(seq("The"))) |
|---|
| 31 |
end |
|---|
| 32 |
|
|---|
| 33 |
end |
|---|