File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
tests/FSharp.Compiler.ComponentTests
Conformance/Expressions/ApplicationExpressions Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -2556,7 +2556,7 @@ let private ResolveObjectConstructorPrim (ncenv: NameResolver) edenv resInfo m a
2556
2556
[ DefaultStructCtor( g, ty)]
2557
2557
else []
2558
2558
if ( isNil defaultStructCtorInfo && isNil ctorInfos) || ( not ( isAppTy g ty) && not ( isAnyTupleTy g ty)) then
2559
- raze ( error ( NoConstructorsAvailableForType( ty, edenv, m) ))
2559
+ raze ( NoConstructorsAvailableForType( ty, edenv, m))
2560
2560
else
2561
2561
let ctorInfos = ctorInfos |> List.filter ( IsMethInfoAccessible amap m ad)
2562
2562
let metadataTy = convertToTypeWithMetadataIfPossible g ty
Original file line number Diff line number Diff line change
1
+ module FSharp.Compiler.ComponentTests.Conformance.Expressions.ApplicationExpressions.Ctor
2
+
3
+ open FSharp.Test .Compiler
4
+ open Xunit
5
+
6
+ [<Fact>]
7
+ let ``Nullable 01`` () =
8
+ FSharp """
9
+ module Module
10
+
11
+ let _ = System.Nullable()
12
+ """
13
+ |> typecheck
14
+ |> shouldSucceed
Original file line number Diff line number Diff line change 83
83
<Compile Include =" Conformance\GeneratedEqualityHashingComparison\Basic\Basic.fs" />
84
84
<Compile Include =" Conformance\GeneratedEqualityHashingComparison\IComparison\IComparison.fs" />
85
85
<Compile Include =" Conformance\Expressions\ApplicationExpressions\BasicApplication\BasicApplication.fs" />
86
+ <Compile Include =" Conformance\Expressions\ApplicationExpressions\Ctor.fs" />
86
87
<Compile Include =" Conformance\Expressions\BindingExpressions\BindingExpressions.fs" />
87
88
<Compile Include =" Conformance\Expressions\ComputationExpressions\ComputationExpressions.fs" />
88
89
<Compile Include =" Conformance\Expressions\ObjectExpressions\ObjectExpressions.fs" />
You can’t perform that action at this time.
0 commit comments