mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-20 16:31:04 +00:00
Estimated hours taken: 0.5 Branches: main Get tests/warnings to pass in grade java. tests/warnings/foreign_term_invalid.m: Add Java and C# "pragma foreign_proc" clauses. tests/warnings/purity_warnings.m: tests/warnings/singleton_test.m: Add Java "pragma foreign_proc" clauses. tests/warnings/singleton_test.exp*: Adjust line numbers to reflect the above changes to the source, and also add a new .exp3 file containing the expected warnings for grade java.
20 lines
1.3 KiB
Plaintext
20 lines
1.3 KiB
Plaintext
singleton_test.m:022: In clause for predicate `singleton_test.my_append/3':
|
|
singleton_test.m:022: warning: variable `L2' occurs only once in this scope.
|
|
singleton_test.m:026: In clause for function `singleton_test.my_append_func/2':
|
|
singleton_test.m:026: warning: variables `L1, L2' occur only once in this scope.
|
|
singleton_test.m:027: In clause for function `singleton_test.my_append_func/2':
|
|
singleton_test.m:027: warning: variable `T' occurs only once in this scope.
|
|
singleton_test.m:036: In the Java code for predicate `singleton_test.my_c_pred/3':
|
|
singleton_test.m:036: warning: variable `Y' does not occur in the Java code.
|
|
singleton_test.m:048: In the Java code for function `singleton_test.my_c_func/2':
|
|
singleton_test.m:048: warning: variable `X' does not occur in the Java code.
|
|
singleton_test.m:065: In the Java code for predicate `singleton_test.c_hello_world/3':
|
|
singleton_test.m:065: warning: variable `Msg' does not occur in the Java code.
|
|
singleton_test.m:008: In function `singleton_test.my_append_func/2':
|
|
singleton_test.m:008: warning: unresolved polymorphism.
|
|
singleton_test.m:008: The variables with unbound types were:
|
|
singleton_test.m:008: L2: V_1
|
|
singleton_test.m:008: L1: V_1
|
|
singleton_test.m:008: The unbound type variable(s) will be implicitly
|
|
singleton_test.m:008: bound to the builtin type `void'.
|