Why is a type of the member of the object different in a function?

后端 未结 0 1071
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 05:41

Code below produces following result:

as member: nested: AnyRef{def x: Int; def x_=(x$1: Int): Unit}
as local: nested: Object

(Tested with Sc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题