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

Commit426f2a2

Browse files
committed
add extra tests for IsSealed
1 parent8dc04ab commit426f2a2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

‎tests/fsharp/core/array/test.fsx‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,27 @@ module bug872632 =
13681368

13691369
do check"bug872632" Foo.x.Length8
13701370

1371-
do check"vwllfewlkefwl"(typedefof<list<int>>.IsSealed)true
1371+
moduleCheckUnionTypesAreSealed=
1372+
openSystem
1373+
do check"vwllfewlkefw1"(typedefof<list<int>>.IsSealed)true
1374+
do check"vwllfewlkefw2"(typedefof<option<int>>.IsSealed)true
1375+
typeX1= A| B
1376+
do check"vwllfewlkefw3"(typedefof<X1>.IsSealed)true
1377+
typeX2= A| Bofstring
1378+
do check"vwllfewlkefw4"(typedefof<X2>.IsSealed)false
1379+
typeX3= A| B| C
1380+
do check"vwllfewlkefw5"(typedefof<X3>.IsSealed)false
1381+
1382+
[<CompilationRepresentation(CompilationRepresentationFlags.UseNullAsTrueValue)>]
1383+
typeSetTree<'T>=
1384+
| SetEmpty
1385+
| SetNodeof'T*SetTree<'T>*SetTree<'T>
1386+
do check"vwllfewlkefw6"(typedefof<SetTree<int>>.IsSealed)true
1387+
1388+
typeSetTree2<'T>=
1389+
| SetEmpty
1390+
| SetNodeof'T*SetTree2<'T>*SetTree2<'T>
1391+
do check"vwllfewlkefw6"(typedefof<SetTree2<int>>.IsSealed)false
13721392

13731393
modulemanyIndexes=
13741394
openSystem

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp