Skip to content

Commit

Permalink
Added test case for Issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
smillst authored and mernst committed Dec 28, 2015
1 parent ea7bc02 commit 0fea107
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testdata/iflowsource/Issue9.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//@skip-test
import sparta.checkers.quals.*;
abstract class StringConcatenateAssignment{
abstract @Source("READ_SMS") String getSMS();
String inferField = "";
private void test() {
String s = "";
s += getSMS();
//:: fixable-error: (assignment.type.incompatible)
inferField = s;
}
}

0 comments on commit 0fea107

Please sign in to comment.