-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tinygo): syntax error when field name is 'type' in record and a f…
…unction exists that uses that record (#912) * add world-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add world-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * fix(tinygo): fix world-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add enum-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add interface-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add interface-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add record-has-go-keyword-and-used-in-fn testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * fix(tinygo): fix record-has-go-keyword-and-used-in-fn testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * update list of unsupported testcases for csharp Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * feat(go): add understore as prefix to keyword in go Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com> --------- Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com> Co-authored-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
- Loading branch information
1 parent
2339d53
commit 174c584
Showing
7 changed files
with
77 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package foo:foo; | ||
|
||
interface foo-bar { | ||
record foo{ | ||
something: string, | ||
anything: string | ||
} | ||
|
||
enum bar{ | ||
anything, | ||
%type | ||
} | ||
|
||
fetch: func(x: foo, e: bar) -> string; | ||
} | ||
|
||
world foo-world { | ||
import foo-bar; | ||
} |
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,18 @@ | ||
package foo:foo; | ||
|
||
interface %type { | ||
record foo{ | ||
something: string, | ||
anything: string | ||
} | ||
|
||
record bar{ | ||
anything: u16 | ||
} | ||
|
||
fetch: func(x: foo) -> result<bar>; | ||
} | ||
|
||
world foo-world { | ||
import %type; | ||
} |
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,18 @@ | ||
package foo:foo; | ||
|
||
interface foo-bar { | ||
record foo{ | ||
%type: string, | ||
anything: string | ||
} | ||
|
||
record bar{ | ||
anything: u16 | ||
} | ||
|
||
fetch: func(x: foo) -> result<bar>; | ||
} | ||
|
||
world foo-world { | ||
import foo-bar; | ||
} |
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 @@ | ||
package foo:foo; | ||
|
||
interface foo-bar { | ||
hello: func() -> string; | ||
} | ||
|
||
world %type { | ||
import foo-bar; | ||
} |