-
Notifications
You must be signed in to change notification settings - Fork 855
Null value returned from trait call #12386
Copy link
Copy link
Labels
Area-Compiler-SRTPbugs in SRTP inference, resolution, witness passing, code genbugs in SRTP inference, resolution, witness passing, code genBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.Regression
Milestone
Metadata
Metadata
Assignees
Labels
Area-Compiler-SRTPbugs in SRTP inference, resolution, witness passing, code genbugs in SRTP inference, resolution, witness passing, code genBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.Regression
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
New
There are some cases where an invalid value is returned from a trait call.
Repro steps
try in fsi
send it
Now try this
call 42.Expected behavior
val it : float = 0.0Actual behavior
val it : obj = <null>Known workarounds
I haven't found one so far.
I didn't try in older versions, but I'm under the impression that this is a regression.