You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
653 B
29 lines
653 B
/*
|
|
* Copyright (c) 2018-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
package codetoanalyze.java.quandary;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Repro of HIL bindings issue: In the exception node, the invariant that a bound variable cannot
|
|
* appear in the RHS of another binding is broken.
|
|
*/
|
|
class Hil {
|
|
public static void foo() {
|
|
List<Integer> Y = new ArrayList<>();
|
|
int dummy = 0;
|
|
for (Character x : "X".toCharArray()) {
|
|
dummy = 1;
|
|
}
|
|
for (Integer y : Y) {
|
|
dummy = 2;
|
|
}
|
|
}
|
|
}
|