Skip to content

Commit

Permalink
add type arg index
Browse files Browse the repository at this point in the history
  • Loading branch information
nimakarimipour committed Oct 10, 2024
1 parent 5a9c0da commit 1d0f79d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/templatetest/foo/bar/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@
import java.lang.annotation.*;
import java.util.*;

public class Test {}
public class Test<T> {

void exec(Map<T, T> map){
// :: error: argument
sink(map.values().iterator().next());
}

void sink(@RUntainted T t){

}
}

0 comments on commit 1d0f79d

Please sign in to comment.