]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Deriving1.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Deriving1.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Deriving1.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Deriving1.scl
new file mode 100644 (file)
index 0000000..6eabc62
--- /dev/null
@@ -0,0 +1,9 @@
+import "Prelude"\r
+\r
+data Vec2 = Vec2 Double Double\r
+\r
+deriving instance Eq Vec2\r
+\r
+main = Vec2 1 1 == Vec2 1 1\r
+--\r
+true
\ No newline at end of file