@@ -191,4 +191,12 @@ class TestMisc extends Test {
eq(o.blabla,3);
}
+ static inline function foo(x) return x + 5
+
+ function testInline() {
+ // check that operations are correctly generated
+ var x = 3; // prevent optimization
+ eq( 2 * foo(x), 16 );
+ }