-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added associated type args in the parser (#6741)
- Loading branch information
1 parent
e541b63
commit 3045f6d
Showing
9 changed files
with
663 additions
and
30 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
48 changes: 48 additions & 0 deletions
48
crates/cairo-lang-parser/src/parser_test_data/diagnostics/generic_params
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,48 @@ | ||
//! > Test modifier followed by path. | ||
|
||
//! > test_runner_name | ||
get_diagnostics | ||
|
||
//! > cairo_code | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
|
||
//! > expected_diagnostics | ||
error: Missing token TerminalColon. | ||
--> dummy_file.cairo:1:34 | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
^ | ||
|
||
error: Missing tokens. Expected a type expression. | ||
--> dummy_file.cairo:1:34 | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
^ | ||
|
||
error: Missing token TerminalComma. | ||
--> dummy_file.cairo:1:37 | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
^ | ||
|
||
error: Skipped tokens. Expected: generic param. | ||
--> dummy_file.cairo:1:37 | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
^ | ||
|
||
error: Missing token TerminalComma. | ||
--> dummy_file.cairo:1:39 | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
^ | ||
|
||
error: Skipped tokens. Expected: generic param. | ||
--> dummy_file.cairo:1:39 | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
^ | ||
|
||
error: Missing token TerminalComma. | ||
--> dummy_file.cairo:1:41 | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
^ | ||
|
||
error: Skipped tokens. Expected: generic param. | ||
--> dummy_file.cairo:1:41 | ||
fn f<+I[a : b], impl C: G<A, B>[c],T[a:b]>() {} | ||
^ |
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
Oops, something went wrong.