1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Improvements to auto-impl properties

This commit is contained in:
Brian Fiete 2022-03-01 09:49:02 -08:00
parent 36e0a3a375
commit 06f4eb9576
8 changed files with 113 additions and 61 deletions

View file

@ -1,3 +1,5 @@
#pragma warning disable 168
using System;
namespace IDETest
{
@ -49,7 +51,7 @@ namespace IDETest
{
parent = test;
mInnerInt = parent.mA;
mSA.mA = 123;
int a = mSA.mA;
int b = mSA.mB; //FAIL

View file

@ -19,6 +19,9 @@ namespace IDETest
struct StructB
{
public StructA B { get; }
public StructA B2 { get; set mut; }
public ref StructA B3 { get; } //FAIL
public ref StructA B4 { get mut; }
int mZ = 9;
@ -29,6 +32,7 @@ namespace IDETest
public void Yoop() mut
{
B = .(); //FAIL
B2.mA = .(); //WARN
}
}
}