fuzion icon indicating copy to clipboard operation
fuzion copied to clipboard

Returning `Any.me => Any.this` is not usable as expected, produces errors

Open fridis opened this issue 1 year ago • 0 comments

This is probably related to #3730.

This code

x is
  f      => say "x.f"
  type.f => say "x.type.f"

Any.me => Any.this

(id x).f
x.me.f
x.type.f

produces a strange error claiming the target feature in call to x.me.f is Any.me

 > ./build/bin/fz test_x.fz 

/home/fridi/fuzion/fuzion/test_x.fz:8:6: error 1: Could not find called feature
x.me.f

Feature not found: 'f' (no arguments)
Target feature: 'Any.me'
In call: 'x.me.f'

one error.

fridis avatar Sep 06 '24 12:09 fridis