You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Root cause is here. This case handles both [ldsfld] and [ldsfld; nop], but only captures [ldfld]. In this scenario the op is [ldfld; nop] so it falls through to the error case.
The extra nop is deliberately added for readonly fields (here for instance, here for static), so it looks like it was just an oversight to miss this case.
Description:
A readonly field that is defined by C# class can't use at the function with ReflectedDefinition attribute.
Repro Steps:
Expected:
Compilation is successful.
Actual:
Compile error.
Version: Language, compiler, library, platform version
F# 3.1.2, .NET Framework 4.5, Visual Studio 2013
Workaround: List any known workarounds
readonly
ReflectedDefinition
(but this is unacceptable)The text was updated successfully, but these errors were encountered: