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
Copy file name to clipboardExpand all lines: src/fsharp/tast.fs
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -274,8 +274,6 @@ type TyparRigidity =
274
274
/// Indicates the type parameter derives from an '_' anonymous type
275
275
/// For units-of-measure, we give a warning if this gets solved to '1'
276
276
| Anon
277
-
/// Indicates a type parameter coming from an IL method reference
278
-
| Unresolved
279
277
memberx.ErrorIfUnified=match x with TyparRigidity.Rigid ->true|_->false
280
278
memberx.WarnIfUnified=match x with TyparRigidity.WillBeRigid | TyparRigidity.WarnIfNotRigid ->true|_->false
281
279
memberx.WarnIfMissingConstraint=match x with TyparRigidity.WillBeRigid ->true|_->false
@@ -296,8 +294,7 @@ type TyparFlags(flags:int32) =
296
294
| TyparRigidity.WillBeRigid ->0b000000100000
297
295
| TyparRigidity.WarnIfNotRigid ->0b000001000000
298
296
| TyparRigidity.Flexible ->0b000001100000
299
-
| TyparRigidity.Anon ->0b000010000000
300
-
| TyparRigidity.Unresolved ->0b000010100000)|||
297
+
| TyparRigidity.Anon ->0b000010000000)|||
301
298
(match kind with
302
299
| TyparKind.Type ->0b000000000000
303
300
| TyparKind.Measure ->0b000100000000)|||
@@ -329,7 +326,6 @@ type TyparFlags(flags:int32) =
329
326
|0b000001000000-> TyparRigidity.WarnIfNotRigid
330
327
|0b000001100000-> TyparRigidity.Flexible
331
328
|0b000010000000-> TyparRigidity.Anon
332
-
|0b000010100000-> TyparRigidity.Unresolved
333
329
|_-> failwith "unreachable"
334
330
335
331
/// Indicates whether a type variable can be instantiated by types or units-of-measure.
@@ -778,7 +774,7 @@ type Entity =
778
774
779
775
/// Get the Abstract IL scope, nesting and metadata for this
780
776
/// type definition, assuming it is backed by Abstract IL metadata.
781
-
memberx.ILTyconInfo=match x.TypeReprInfo with| TILObjectRepr (a,b,c)->(a,b,c)|i->failwithf "not a .NET type definition: %+A" i
777
+
memberx.ILTyconInfo=match x.TypeReprInfo with| TILObjectRepr (a,b,c)->(a,b,c)|_->assertfalse; failwith "not a .NET type definition"
782
778
783
779
/// Get the Abstract IL metadata for this type definition, assuming it is backed by Abstract IL metadata.
784
780
memberx.ILTyconRawMetadata=let_,_,td = x.ILTyconInfo in td
@@ -4555,8 +4551,6 @@ let NewTypar (kind,rigid,Typar(id,staticReq,isCompGen),isFromError,dynamicReq,at
4555
4551
4556
4552
letNewRigidTypar nm m = NewTypar (TyparKind.Type,TyparRigidity.Rigid,Typar(mkSynId m nm,NoStaticReq,true),false,TyparDynamicReq.Yes,[],false,false)
4557
4553
4558
-
letNewUnresolvedTypar nm m = NewTypar (TyparKind.Type,TyparRigidity.Unresolved,Typar(mkSynId m nm,NoStaticReq,true),false,TyparDynamicReq.Yes,[],false,false)
4559
-
4560
4554
letNewUnionCase id nm tys rty attribs docOption access :UnionCase =
0 commit comments