Commit 3f6a926
authored
Improve type checking errors with structs (#761)
Change the implementation of TypeSpec::string(), which returns the text
representation of a TypeSpec, so that it prints the name of the struct
rather than just its numerical designation.
An example of the old behavior, as applied to a type checking error
message:
test.osl:10: error: No matching function call to 'max (struct 1, struct 1)'
Candidates are:
int max (int, int)
float max (float, float)
...
And the new behavior:
test.osl:10: error: No matching function call to 'max (struct vector4, struct vector4)'1 parent b8f8b2b commit 3f6a926
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
0 commit comments