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
match ResolveTypeLongIdent cenv.tcSink cenv.nameResolver ItemOccurrence.UseInAttribute OpenQualified env.eNameResEnv ad tycon TypeNameResolutionStaticArgsInfo.DefiniteEmpty PermitDirectReferenceToGeneratedType.No with
// *Ex means the function accepts attribute targets that must be explicit
@@ -11302,24 +11371,13 @@ and TcAttributeEx canFail (cenv: cenv) (env: TcEnv) attrTgt attrEx (synAttr: Syn
11302
11371
let targetIndicator = synAttr.Target
11303
11372
let isAppliedToGetterOrSetter = synAttr.AppliesToGetterAndSetter
11304
11373
let mAttr = synAttr.Range
11305
-
let typath, tyid = List.frontAndBack tycon
11306
-
let tpenv = emptyUnscopedTyparEnv
11374
+
let _, tyId = List.frontAndBack tycon
11307
11375
let ad = env.eAccessRights
11308
11376
11309
11377
// if we're checking an attribute that was applied directly to a getter or a setter, then
11310
11378
// what we're really checking against is a method, not a property
11311
11379
let attrTgt = if isAppliedToGetterOrSetter then ((attrTgt ^^^ AttributeTargets.Property) ||| AttributeTargets.Method) else attrTgt
11312
-
let ty, tpenv =
11313
-
let try1 n =
11314
-
let tyid = mkSynId tyid.idRange n
11315
-
let tycon = (typath @ [tyid])
11316
-
11317
-
match ResolveTypeLongIdent cenv.tcSink cenv.nameResolver ItemOccurrence.UseInAttribute OpenQualified env.eNameResEnv ad tycon TypeNameResolutionStaticArgsInfo.DefiniteEmpty PermitDirectReferenceToGeneratedType.No with
Copy file name to clipboardExpand all lines: src/Compiler/FSComp.txt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1806,4 +1806,5 @@ featureAllowLetOrUseBangTypeAnnotationWithoutParens,"Allow let! and use! type an
1806
1806
3874,lexWarnDirectiveMustBeFirst,"#nowarn/#warnon directives must appear as the first non-whitespace characters on a line"
1807
1807
3875,lexWarnDirectiveMustHaveArgs,"Warn directives must have warning number(s) as argument(s)"
1808
1808
3876,lexWarnDirectivesMustMatch,"There is another %s for this warning already in line %d."
1809
-
3877,lexLineDirectiveMappingIsNotUnique,"The file '%s' was also pointed to in a line directive in '%s'. Proper warn directive application may not be possible."
1809
+
3877,lexLineDirectiveMappingIsNotUnique,"The file '%s' was also pointed to in a line directive in '%s'. Proper warn directive application may not be possible."
1810
+
3878,tcAttributeIsNotValidForUnionCaseWithFields,"This attribute is not valid for use on union cases with fields."
0 commit comments