File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -484,10 +484,18 @@ let rec IsPartialExprVal x =
484484 | ValValue (_, a)
485485 | SizeValue(_, a) -> IsPartialExprVal a
486486
487+ #if FABLE_ CLI
488+ // Many Fable packages inline functions that access internal values to resolve generics, this is not an issue
489+ // in "normal" Fable compilations but it raises errors when generating an assembly por precompilation. Disable
490+ // for Fable as it's not an actual error (and if is, we assume it's already been raised during type chedking).
491+ let CheckInlineValueIsComplete ( _v : Val ) _res =
492+ ()
493+ #else
487494let CheckInlineValueIsComplete ( v : Val ) res =
488495 if v.MustInline && IsPartialExprVal res then
489496 errorR( Error( FSComp.SR.optValueMarkedInlineButIncomplete( v.DisplayName), v.Range))
490497 //System.Diagnostics.Debug.Assert(false, sprintf "Break for incomplete inline value %s" v.DisplayName)
498+ #endif
491499
492500let check ( vref : ValRef ) ( res : ValInfo ) =
493501 CheckInlineValueIsComplete vref.Deref res.ValExprInfo
You can’t perform that action at this time.
0 commit comments