-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge attrs and allow only checks and asserts
- Loading branch information
1 parent
2b8cce6
commit bad63bf
Showing
27 changed files
with
806 additions
and
20 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
24 changes: 24 additions & 0 deletions
24
engine/baml-lib/baml/tests/validation_files/class/invalid_attrs_on_type_alias.baml
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,24 @@ | ||
type DescNotAllowed = string @description("This is not allowed") | ||
|
||
type AliasNotAllowed = float @alias("Alias not allowed") | ||
|
||
type SkipNotAllowed = float @skip | ||
|
||
// error: Error validating: type aliases may only have check and assert attributes | ||
// --> class/invalid_attrs_on_type_alias.baml:1 | ||
// | | ||
// | | ||
// 1 | type DescNotAllowed = string @description("This is not allowed") | ||
// | | ||
// error: Error validating: type aliases may only have check and assert attributes | ||
// --> class/invalid_attrs_on_type_alias.baml:3 | ||
// | | ||
// 2 | | ||
// 3 | type AliasNotAllowed = float @alias("Alias not allowed") | ||
// | | ||
// error: Error validating: type aliases may only have check and assert attributes | ||
// --> class/invalid_attrs_on_type_alias.baml:5 | ||
// | | ||
// 4 | | ||
// 5 | type SkipNotAllowed = float @skip | ||
// | |
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
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
Oops, something went wrong.