Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f76f88

Browse files
committed
Fold in fix for Mono that got lost in 2.0 --> 3.0 transition
This fixes the fsharpi issue reported yesterday. The fix was in the 2.0codebase but seems to have got lost along the wayfsharp#39
1 parentf36ff15 commit2f76f88

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/absil/ilreflect.fs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,14 @@ let rec convAttribElem cenv emEnv = function
668668
// This is gross. TypeBuilderInstantiation should really be a public type, since we
669669
// have to use alternative means for various Method/Field/Constructor lookups. However since
670670
// it isn't we resort to this technique...
671-
letTypeBuilderInstantiationT= Type.GetType("System.Reflection.Emit.TypeBuilderInstantiation")
671+
letTypeBuilderInstantiationT=
672+
letty=
673+
if runningOnMonothen
674+
Type.GetType("System.Reflection.MonoGenericClass")
675+
else
676+
Type.GetType("System.Reflection.Emit.TypeBuilderInstantiation")
677+
assert(not(isNull ty))
678+
ty
672679

673680
lettypeIsNotQueryable(typ:Type)=
674681
(typ:? TypeBuilder)||((typ.GetType()).Equals(TypeBuilderInstantiationT))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp