]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ClashingJavaImport.scl
(refs #7459) Fixed check for alread defined value name in the module.
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / ClashingJavaImport.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ClashingJavaImport.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ClashingJavaImport.scl
new file mode 100644 (file)
index 0000000..7b8fc13
--- /dev/null
@@ -0,0 +1,7 @@
+importJava "java.lang.String" where
+    valueOf :: Integer -> String 
+    valueOf :: Double -> String
+    
+main = "Should not be executed."
+--
+3:5-3:32: Value valueOf has already been defined in this module.
\ No newline at end of file