root/trunk/ProjectFortress/parser_tests/ioTests.fss

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
18component ioTests
19export Executable
20
21object Error extends Exception end
22
23run() = 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 -> ())
29end
30
31end
Note: See TracBrowser for help on using the browser.