Permalink
Browse files

bangbang in assignment if needed

  • Loading branch information...
1 parent 20372b9 commit 5b5f425c1f1c9f8a95ba3781b53c70082811342a @yole committed Jun 1, 2012
@@ -46,7 +46,7 @@ public open class ExpressionVisitor(converter: Converter): StatementVisitor(conv
}
val lhs = getConverter().expressionToExpression(expression?.getLExpression()!!)
- val rhs = getConverter().expressionToExpression(expression?.getRExpression()!!)
+ val rhs = getConverter().expressionToExpression(expression?.getRExpression()!!, expression?.getRExpression()?.getType())
if (!secondOp.isEmpty()) {
myResult = AssignmentExpression(lhs, BinaryExpression(lhs, rhs, secondOp), "=")
}
@@ -0,0 +1,9 @@
+import java.util.BitSet;
+
+class Foo {
+ void foo(BitSet o) {
+ BitSet o2 = o;
+ int foo = 0;
+ foo = o2.size();
+ }
+}
@@ -0,0 +1,8 @@
+import java.util.BitSet
+open class Foo() {
+open fun foo(o : BitSet?) : Unit {
+var o2 : BitSet? = o
+var foo : Int = 0
+foo = o2?.size()!!
+}
+}

0 comments on commit 5b5f425

Please sign in to comment.