#version 120 float function(int i) { // return with different type return i; } void main() { int i=3; float j; j=function(i); }