﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1308	Lookup of builtin functions is not implemented correctly	Martin Sjölund	Martin Sjölund	"Even when calling a function P.identity, the builtin function has precedence. This is clearly wrong. Even though it would possibly make instantiation slower, we should consider builtin types only at the top-level scope. Shadowing builtin functions is used in OMC so this is needed for bootstrapping.

{{{package P

function identity
  input String str;
  output String o := str;
end identity;

end P;}}}

{{{P.identity(""1"");
getErrorString();}}}

{{{""Error: No matching function found for P.identity in component <NO COMPONENT>, candidates are function(x:Integer) => Integer[8]
 -function(x:Integer) => Integer[7]
 -function(x:Integer) => Integer[6]
 -function(x:Integer) => Integer[5]
 -function(x:Integer) => Integer[4]
 -function(x:Integer) => Integer[3]
 -function(x:Integer) => Integer[2]
 -function(x:Integer) => Integer[1]
""
}}}"	defect	closed	high	Bootstrapping	Instantiation		fixed		Martin Sjölund
