-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance anoymous schema type checking in the expr context stack (…
…#1096) Signed-off-by: peefy <xpf6677@163.com>
- Loading branch information
Showing
13 changed files
with
147 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
kclvm/sema/src/resolver/test_fail_data/unmatched_nest_schema_attr_0.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
schema Name: | ||
name: str | ||
|
||
schema Config: | ||
n: {str:Name} | ||
|
||
Config { | ||
n = { | ||
n.n = "n" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
kclvm/sema/src/resolver/test_fail_data/unmatched_nest_schema_attr_1.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
schema Name: | ||
name: str | ||
|
||
schema Config: | ||
n: [Name] | ||
|
||
Config { | ||
n = [{ | ||
n = "n" | ||
}] | ||
} |
11 changes: 11 additions & 0 deletions
11
kclvm/sema/src/resolver/test_fail_data/unmatched_nest_schema_attr_2.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
schema Name: | ||
name: str | ||
|
||
schema Config: | ||
n: {str:[Name]} | ||
|
||
Config { | ||
n = {n = [{ | ||
n = "n" | ||
}]} | ||
} |
14 changes: 14 additions & 0 deletions
14
kclvm/sema/src/resolver/test_fail_data/unmatched_nest_schema_attr_3.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
schema Name1: | ||
name1: str | ||
|
||
schema Name2: | ||
name2: str | ||
|
||
schema Config: | ||
n: Name1 | Name2 | ||
|
||
Config { | ||
n = { | ||
n = "n" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
kclvm/sema/src/resolver/test_fail_data/unmatched_schema_attr_0.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
schema Name: | ||
name: str | ||
|
||
n: {str:Name} = { | ||
n.n = "n" | ||
} |
6 changes: 6 additions & 0 deletions
6
kclvm/sema/src/resolver/test_fail_data/unmatched_schema_attr_1.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
schema Name: | ||
name: str | ||
|
||
n: [Name] = [{ | ||
n = "n" | ||
}] |
6 changes: 6 additions & 0 deletions
6
kclvm/sema/src/resolver/test_fail_data/unmatched_schema_attr_2.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
schema Name: | ||
name: str | ||
|
||
n: {str:[Name]} = {n = [{ | ||
n = "n" | ||
}]} |
9 changes: 9 additions & 0 deletions
9
kclvm/sema/src/resolver/test_fail_data/unmatched_schema_attr_3.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
schema Name1: | ||
name1: str | ||
|
||
schema Name2: | ||
name2: str | ||
|
||
n: Name1 | Name2 = { | ||
n = "n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters