Skip to content

Commit df16497

Browse files
committed
tests
1 parent f9e4e57 commit df16497

13 files changed

+116
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class Class1
2+
{
3+
public Class1()
4+
{
5+
var t = new T();
6+
var _ = t.A;
7+
t.A = 1;
8+
}
9+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
namespace global
2+
3+
type T() =
4+
member val A = 1 with private get, set
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
public class Class1
2+
{
3+
public Class1()
4+
{
5+
var t = new T();
6+
var _ = t.|A|(0);
7+
t.|A|(1) = 1;
8+
}
9+
}
10+
---------------------------------------------------------
11+
(0): ReSharper Underlined Error Highlighting: Cannot access private property 'A' here
12+
(1): ReSharper Underlined Error Highlighting: Cannot access private property 'A' here
13+
M:T.#ctor
14+
P:T.A
15+
P:T.A
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class Class1
2+
{
3+
public Class1()
4+
{
5+
var t = new T();
6+
var _ = t.A;
7+
t.A = 1;
8+
}
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
namespace global
2+
3+
type T() =
4+
member x.A with private get() = 1
5+
and set (_: int) = ()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
public class Class1
2+
{
3+
public Class1()
4+
{
5+
var t = new T();
6+
var _ = t.|A|(0);
7+
t.|A|(1) = 1;
8+
}
9+
}
10+
---------------------------------------------------------
11+
(0): ReSharper Underlined Error Highlighting: Cannot access private property 'A' here
12+
(1): ReSharper Underlined Error Highlighting: Cannot access private property 'A' here
13+
M:T.#ctor
14+
P:T.A
15+
P:T.A
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class Class1
2+
{
3+
public Class1()
4+
{
5+
var t = new T();
6+
var _ = t.A;
7+
t.A = 1;
8+
}
9+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
namespace global
2+
3+
type T() =
4+
member val A = 1 with get, private set
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
public class Class1
2+
{
3+
public Class1()
4+
{
5+
var t = new T();
6+
var _ = t.A;
7+
t.|A|(0) = 1;
8+
}
9+
}
10+
---------------------------------------------------------
11+
(0): ReSharper Underlined Error Highlighting: The property 'T.A' cannot be used in this context because the 'set' accessor is inaccessible
12+
M:T.#ctor
13+
P:T.A
14+
P:T.A
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class Class1
2+
{
3+
public Class1()
4+
{
5+
var t = new T();
6+
var _ = t.A;
7+
t.A = 1;
8+
}
9+
}

0 commit comments

Comments
 (0)