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

Commit9caa326

Browse files
ncaveKevinRansom
authored andcommitted
added missing constant (#3575)
1 parentf745fe5 commit9caa326

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎src/fsharp/symbols/Exprs.fs‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -959,17 +959,16 @@ module FSharpExprConvert =
959959
| Const.Int32 i-> E.Const(box i, tyR)
960960
| Const.UInt32 i-> E.Const(box i, tyR)
961961
| Const.Int64 i-> E.Const(box i, tyR)
962-
| Const.IntPtr i-> E.Const(box(nativeint i), tyR)
963962
| Const.UInt64 i-> E.Const(box i, tyR)
964-
| Const.UIntPtr i-> E.Const(box(unativeint i), tyR)
965-
| Const.Double i-> E.Const(box i, tyR)
966-
| Const.Single i-> E.Const(box i, tyR)
963+
| Const.IntPtr i-> E.Const(box(nativeint i), tyR)
964+
| Const.UIntPtr i-> E.Const(box(unativeint i), tyR)
965+
| Const.Decimal i-> E.Const(box i, tyR)
966+
| Const.Double i-> E.Const(box i, tyR)
967+
| Const.Single i-> E.Const(box i, tyR)
967968
| Const.String i-> E.Const(box i, tyR)
968969
| Const.Char i-> E.Const(box i, tyR)
969970
| Const.Unit-> E.Const(box(), tyR)
970971
| Const.Zero-> E.DefaultValue(ConvType cenv ty)
971-
|_->
972-
wfail("FSharp.Compiler.Service cannot yet return this kind of constant", m)
973972

974973
andConvDecisionTree cenv env dtreeRetTy x m=
975974
ConvDecisionTreePrim cenv env dtreeRetTy x|> Mk cenv m dtreeRetTy

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp