Mercurial > hg > truffle
diff graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ImplicitCastTest.java @ 18758:3912400fc33a
Truffle-DSL: remove type system singleton
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:42 +0100 |
parents | 5148aab962af |
children | 93016f2f3f16 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ImplicitCastTest.java Mon Dec 29 23:38:39 2014 +0100 +++ b/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ImplicitCastTest.java Mon Dec 29 23:38:42 2014 +0100 @@ -38,12 +38,12 @@ static class ImplicitCast0Types { @ImplicitCast - boolean castInt(int intvalue) { + static boolean castInt(int intvalue) { return intvalue == 1 ? true : false; } @ImplicitCast - boolean castString(String strvalue) { + static boolean castString(String strvalue) { return strvalue.equals("1"); } @@ -160,7 +160,7 @@ @ImplicitCast @ExpectError("Target type and source type of an @ImplicitCast must not be the same type.") - String castInvalid(@SuppressWarnings("unused") String value) { + static String castInvalid(@SuppressWarnings("unused") String value) { throw new AssertionError(); }