@@ -95,7 +95,6 @@ module TypedTest = begin
9595 test " check UInt16" ((<@ 1 us @> |> ( function UInt16 1 us -> true | _ -> false )))
9696 test " check UInt32" ((<@ 1 u @> |> ( function UInt32 1 u -> true | _ -> false )))
9797 test " check UInt64" ((<@ 1 UL @> |> ( function UInt64 1 UL -> true | _ -> false )))
98- test " check Decimal" ((<@ 1 M @> |> ( function Decimal 1 M -> true | _ -> false )))
9998 test " check String" ((<@ " 1" @> |> ( function String " 1" -> true | _ -> false )))
10099
101100 test " check ~SByte" ((<@ " 1" @> |> ( function SByte _ -> false | _ -> true )))
@@ -106,10 +105,14 @@ module TypedTest = begin
106105 test " check ~UInt16" ((<@ " 1" @> |> ( function UInt16 _ -> false | _ -> true )))
107106 test " check ~UInt32" ((<@ " 1" @> |> ( function UInt32 _ -> false | _ -> true )))
108107 test " check ~UInt64" ((<@ " 1" @> |> ( function UInt64 _ -> false | _ -> true )))
109- test " check ~Decimal" ((<@ " 1" @> |> ( function Decimal _ -> false | _ -> true )))
110108 test " check ~String" ((<@ 1 @> |> ( function String " 1" -> false | _ -> true )))
111109
110+ #if FSHARP_ CORE_ 31
111+ #else
112+ test " check Decimal" ((<@ 1 M @> |> ( function Decimal 1 M -> true | _ -> false )))
113+ test " check ~Decimal" ((<@ " 1" @> |> ( function Decimal _ -> false | _ -> true )))
112114 test " check ~Decimal neither" ((<@ 1 M + 1 M @> |> ( function Decimal _ -> false | _ -> true )))
115+ #endif
113116
114117 test " check AndAlso" ((<@ true && true @> |> ( function AndAlso( Bool( true ), Bool( true )) -> true | _ -> false )))
115118 test " check OrElse" ((<@ true || true @> |> ( function OrElse( Bool( true ), Bool( true )) -> true | _ -> false )))
@@ -528,13 +531,16 @@ module TypedTest = begin
528531 | _ -> false
529532 end
530533
534+ #if FSHARP_ CORE_ 31
535+ #else
531536 test " check accesses to readonly fields in ReflectedDefinitions"
532537 begin
533538 let c1 = Class1( " a" )
534539 match <@ c1.myReadonlyField @> with
535540 | FieldGet( Some ( ValueWithName (_, v, " c1" )), field) -> ( v.Name = " Class1" ) && ( field.Name = " myReadonlyField" )
536541 | _ -> false
537542 end
543+ #endif
538544
539545end
540546
@@ -1669,10 +1675,13 @@ module QuotationConstructionTests =
16691675 check " vcknwwe099" ( Expr.PropertySet(<@@ ( new System.Windows.Forms.Form()) @@>, setof <@@ ( new System.Windows.Forms.Form()) .Text <- " 2" @@>, <@@ " 3" @@> )) <@@ ( new System.Windows.Forms.Form()) .Text <- " 3" @@>
16701676 #endif
16711677 check " vcknwwe099" ( Expr.PropertySet(<@@ ( new Foo()) @@>, setof <@@ ( new Foo()).[ 3 ] <- 1 @@>, <@@ 2 @@> , [ <@@ 3 @@> ] )) <@@ ( new Foo()).[ 3 ] <- 2 @@>
1678+ #if FSHARP_ CORE_ 31
1679+ #else
16721680 check " vcknwwe0qq1" ( Expr.QuoteRaw(<@ " 1" @>)) <@@ <@@ " 1" @@> @@>
16731681 check " vcknwwe0qq2" ( Expr.QuoteRaw(<@@ " 1" @@>)) <@@ <@@ " 1" @@> @@>
16741682 check " vcknwwe0qq3" ( Expr.QuoteTyped(<@ " 1" @>)) <@@ <@ " 1" @> @@>
16751683 check " vcknwwe0qq4" ( Expr.QuoteTyped(<@@ " 1" @@>)) <@@ <@ " 1" @> @@>
1684+ #endif
16761685 check " vcknwwe0ww" ( Expr.Sequential(<@@ () @@>, <@@ 1 @@>)) <@@ (); 1 @@>
16771686 check " vcknwwe0ee" ( Expr.TryFinally(<@@ 1 @@>, <@@ () @@>)) <@@ try 1 finally () @@>
16781687 check " vcknwwe0rr" ( match Expr.TryWith(<@@ 1 @@>, Var.Global( " e1" , typeof< exn>), <@@ 1 @@>, Var.Global( " e2" , typeof< exn>), <@@ 2 @@>) with TryWith( b, v1, ef, v2, eh) -> b = <@@ 1 @@> && eh = <@@ 2 @@> && ef = <@@ 1 @@> && v1 = Var.Global( " e1" , typeof< exn>) && v2 = Var.Global( " e2" , typeof< exn>)| _ -> false ) true
@@ -2448,6 +2457,8 @@ module QuotationOfResizeArrayIteration =
24482457
24492458
24502459
2460+ #if FSHARP_ CORE_ 31
2461+ #else
24512462module TestAutoQuoteAtStaticMethodCalls =
24522463 open Microsoft.FSharp .Quotations
24532464
@@ -2752,6 +2763,10 @@ module ExtensionMembersWithSameName =
27522763 | _ -> failwith " unexpected shape"
27532764
27542765 runAll()
2766+ #endif
2767+
2768+ module TestAssemblyAttributes =
2769+ let attributes = System.Reflection.Assembly.GetExecutingAssembly() .GetCustomAttributes( false )
27552770
27562771let aa =
27572772 if not failures.IsEmpty then ( printfn " Test Failed, failures = %A " failures; exit 1 )
0 commit comments