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

Commitfa5e972

Browse files
committed
Add test for DU which is accessed without type but RequiredQualifiedAccess was set - relates todotnet#95
1 parente8a652e commitfa5e972

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

‎tests/fsharp/typecheck/sigs/neg90.bsl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ neg90.fs(4,9,4,12): typecheck error FS0001: A generic construct requires that th
44
neg90.fs(7,22,7,25): typecheck error FS0039: The type 'foo' isnot defined
55

66
neg90.fs(7,22,7,25): typecheck error FS0039: The type 'foo' isnot defined
7+
8+
neg90.fs(16,9,16,21): typecheck error FS0035: This construct is deprecated: The union typefor union case 'Member' was definded with the RequireQualifiedAccessAttribute. Include the name of the uniontype('DU')in the name you are using.'

‎tests/fsharp/typecheck/sigs/neg90.fs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ let _ = foo<Recd>()
66
// See https://github.com/Microsoft/visualfsharp/issues/38
77
type[<Measure>]N= foo// foo is undefined
88
typeM2= float<N>
9+
10+
11+
// See https://github.com/Microsoft/visualfsharp/issues/95
12+
moduleFirst=
13+
[<RequireQualifiedAccess>]
14+
typeDU= Memberofint
15+
16+
let_= First.Member(0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp