Front-end: Add missing rule for function-return implicit type conversion check.
Basic (component) type conversion was done, but checking that the composite was correct was not being done. Fixes issue #353.
This commit is contained in:
parent
b10feabc95
commit
bc17b0a96a
3 changed files with 23 additions and 2 deletions
|
|
@ -68,3 +68,8 @@ void aggCall()
|
|||
float F;
|
||||
m(ivec2(F)); // test input conversion of single argument that's an aggregate; other function tests in 120.vert
|
||||
}
|
||||
|
||||
vec4 badConv()
|
||||
{
|
||||
return u; // ERROR, can change scalar to vector
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue