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:
John Kessenich
2016-06-28 23:56:31 -06:00
parent b10feabc95
commit bc17b0a96a
3 changed files with 23 additions and 2 deletions

View File

@@ -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
}