|
Revision 3875, 1.0 KB
(checked in by sukyoungryu, 5 months ago)
|
|
[overloading checker] Fixed the implementation of identifying the intersection of types with comprises clauses with the union of their common subtypes.
[parser] Added io to arrow types. Added a test.
[shell] Eliminated the temporary shell commands to test the Scala type checker. Added a flag, -typecheck-java, to the fortress compile command.
|
| Line | |
|---|
| 1 | (******************************************************************************* |
|---|
| 2 | Copyright 2009 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 ioTests |
|---|
| 19 | export Executable |
|---|
| 20 | |
|---|
| 21 | object Error extends Exception end |
|---|
| 22 | |
|---|
| 23 | run() = do |
|---|
| 24 | a: io ZZ32->String |
|---|
| 25 | e: io ZZ32->String throws Error |
|---|
| 26 | f: io ZZ32 Length -> (String Time / Length) throws Error |
|---|
| 27 | g: ZZ32 -> (io String -> ()) |
|---|
| 28 | h: io ZZ32 -> (String -> ()) |
|---|
| 29 | end |
|---|
| 30 | |
|---|
| 31 | end |
|---|