[RFC FS-1331] - Allow opens in type and expression scopes #812
Replies: 2 comments 3 replies
-
I am a bit wanna to make the type-scoped On current prototype, the type-scoped type ABC2() =
// inherit Object() // cannot find Object here
// let maxValue = Int32.MaxValue // cannot find Int32 here
[<DefaultValue>] val mutable minValue: Int32
member _.Write x = Console.Write (x: string)
interface IDisposable with
member this.Dispose (): unit = raise (NotImplementedException())
open System
type A =
| A of Int32 // can find Int32 here
with
open System |
Beta Was this translation helpful? Give feedback.
-
I support the restriction - in a type definition, allow The examples you have shown - symbols being available even when Even if in types it is limited at the beginning of a type only, its important that it still works for any expression body within that type - that works, right? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions