2 @JavaType "org.simantics.scl.compiler.elaboration.expressions.Expression"
\r
4 @JavaType "org/simantics/scl/compiler/elaboration/expressions/EIntegerLiteral"
\r
6 EIntegerLiteral String
\r
7 | @JavaType "org.simantics.scl.compiler.elaboration.expressions.ERealLiteral"
\r
11 changeType :: Expression -> Expression
\r
12 changeType (EIntegerLiteral value) = ERealLiteral value
\r
13 changeType (ERealLiteral value) = EIntegerLiteral value
\r
16 main = changeType (EIntegerLiteral "123")
\r