Implemented method inferrence from type in declaration init (test crashes on runtime)