comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ImplicitCastTest.java @ 18785:93016f2f3f16

Truffle-DSL: optimize generated code for nodes with a single specialization. (GRAAL-602 #resolve)
author Christian Humer <christian.humer@gmail.com>
date Mon, 05 Jan 2015 20:23:22 +0100
parents 3912400fc33a
children
comparison
equal deleted inserted replaced
18784:3c7d543d758d 18785:93016f2f3f16
164 throw new AssertionError(); 164 throw new AssertionError();
165 } 165 }
166 166
167 } 167 }
168 168
169 @TypeSystem({String.class, boolean.class})
170 static class ImplicitCastError2 {
171
172 @ImplicitCast
173 @ExpectError("Target type and source type of an @ImplicitCast must not be the same type.")
174 static String castInvalid(@SuppressWarnings("unused") String value) {
175 throw new AssertionError();
176 }
177
178 }
179
169 } 180 }