NFun icon indicating copy to clipboard operation
NFun copied to clipboard

Allow to add client-type

Open tmteam opened this issue 3 years ago • 0 comments

client type:

  1. It has alias
  2. it can be converted to any
  3. it has "to text" operation
  4. has default non null value (or has new() constructor)
Funny.WithCustomType<SomeCustomType>("my_type", new SomeCustomType())
a: my_type = if(true) input else default

tmteam avatar May 30 '22 13:05 tmteam