comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLTypes.java @ 11546:f1c3f50ac36e

SL: added an implicit cast to SL-type system.
author Christian Humer <christian.humer@gmail.com>
date Fri, 06 Sep 2013 16:17:01 +0200
parents 79041ab43660
children 3faec5ab0696
comparison
equal deleted inserted replaced
11545:2fb276f5e3e9 11546:f1c3f50ac36e
67 67
68 @TypeCheck 68 @TypeCheck
69 public boolean isBigInteger(@SuppressWarnings("unused") int value) { 69 public boolean isBigInteger(@SuppressWarnings("unused") int value) {
70 return true; 70 return true;
71 } 71 }
72
73 @ImplicitCast
74 public BigInteger castBigInteger(int value) {
75 return BigInteger.valueOf(value);
76 }
72 } 77 }