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
and TcConstStringExpr cenv overallTy env m tpenv s =
6642
6642
6643
6643
if (AddCxTypeEqualsTypeUndoIfFailed env.DisplayEnv cenv.css m overallTy cenv.g.string_ty) then
6644
-
mkString cenv.g m s,tpenv
6644
+
mkString cenv.g m s,tpenv
6645
6645
else
6646
-
let aty = NewInferenceType ()
6647
-
let bty = NewInferenceType ()
6648
-
let cty = NewInferenceType ()
6649
-
let dty = NewInferenceType ()
6650
-
let ety = NewInferenceType ()
6651
-
let ty' = mkPrintfFormatTy cenv.g aty bty cty dty ety
6652
-
if (not (isObjTy cenv.g overallTy) && AddCxTypeMustSubsumeTypeUndoIfFailed env.DisplayEnv cenv.css m overallTy ty') then
6653
-
// Parse the format string to work out the phantom types
6654
-
let source = match cenv.tcSink.CurrentSink with None -> None | Some sink -> sink.CurrentSource
6655
-
let normalizedString = (s.Replace("\r\n", "\n").Replace("\r", "\n"))
6656
-
6657
-
let (aty',ety'), specifierLocations = (try CheckFormatStrings.ParseFormatString m cenv.g source normalizedString bty cty dty with Failure s -> error (Error(FSComp.SR.tcUnableToParseFormatString(s),m)))
6658
-
6659
-
match cenv.tcSink.CurrentSink with
6660
-
| None -> ()
6661
-
| Some sink ->
6646
+
let aty = NewInferenceType ()
6647
+
let bty = NewInferenceType ()
6648
+
let cty = NewInferenceType ()
6649
+
let dty = NewInferenceType ()
6650
+
let ety = NewInferenceType ()
6651
+
let ty' = mkPrintfFormatTy cenv.g aty bty cty dty ety
6652
+
if (not (isObjTy cenv.g overallTy) && AddCxTypeMustSubsumeTypeUndoIfFailed env.DisplayEnv cenv.css m overallTy ty') then
6653
+
// Parse the format string to work out the phantom types
6654
+
let source = cenv.tcSink.CurrentSink.CurrentSource
6655
+
let normalizedString = (s.Replace("\r\n", "\n").Replace("\r", "\n"))
6656
+
6657
+
let (aty',ety'), specifierLocations = (try CheckFormatStrings.ParseFormatString m cenv.g source normalizedString bty cty dty with Failure s -> error (Error(FSComp.SR.tcUnableToParseFormatString(s),m)))