aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/index.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-08-17 18:16:48 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-08-17 18:16:48 +0200
commit37340f19b0f561c0d85f58834e8f716ba6234f10 (patch)
treebfe752847d007cf52f470694d7db55988cf95aba /subprojects/frontend/src/index.tsx
parentfix: containment link translation (diff)
downloadrefinery-37340f19b0f561c0d85f58834e8f716ba6234f10.tar.gz
refinery-37340f19b0f561c0d85f58834e8f716ba6234f10.tar.zst
refinery-37340f19b0f561c0d85f58834e8f716ba6234f10.zip
fix: opposite translation error reporting
Diffstat (limited to 'subprojects/frontend/src/index.tsx')
-rw-r--r--subprojects/frontend/src/index.tsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/subprojects/frontend/src/index.tsx b/subprojects/frontend/src/index.tsx
index a2746748..077bae79 100644
--- a/subprojects/frontend/src/index.tsx
+++ b/subprojects/frontend/src/index.tsx
@@ -12,11 +12,12 @@ import RootStore from './RootStore';
12 12
13const initialValue = `// Metamodel 13const initialValue = `// Metamodel
14class Person { 14class Person {
15 contains Post[] posts opposite author
15 Person[] friend opposite friend 16 Person[] friend opposite friend
16} 17}
17 18
18class Post { 19class Post {
19 Person[1] author 20 container Person[1] author opposite posts
20 Post replyTo 21 Post replyTo
21} 22}
22 23
@@ -30,15 +31,9 @@ error replyToNotFriend(Post x, Post y) <->
30error replyToCycle(Post x) <-> replyTo+(x, x). 31error replyToCycle(Post x) <-> replyTo+(x, x).
31 32
32// Instance model 33// Instance model
33Person(a).
34Person(b).
35friend(a, b). 34friend(a, b).
36friend(b, a).
37Post(p1).
38author(p1, a). 35author(p1, a).
39Post(p2).
40author(p2, b). 36author(p2, b).
41replyTo(p2, p1).
42 37
43!author(Post::new, a). 38!author(Post::new, a).
44 39