-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3032 from KirillOsenkov/dev/kirillo/sequencePoints
Fix #3031: emit sequence points for expression-bodied properties and indexers
- Loading branch information
Showing
7 changed files
with
155 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<symbols> | ||
<files> | ||
<file id="1" name="-\C.cs" language="C#" checksumAlgorithm="SHA256"> | ||
<![CDATA[using System; | ||
internal class C : IDisposable | ||
{ | ||
private int ExpressionProperty => 42; | ||
private int Property | ||
{ | ||
get | ||
{ | ||
return 0; | ||
} | ||
set | ||
{ | ||
} | ||
} | ||
private C this[int index] => null; | ||
private C this[string s] | ||
{ | ||
get | ||
{ | ||
return null; | ||
} | ||
set | ||
{ | ||
} | ||
} | ||
public event Action Event | ||
{ | ||
add | ||
{ | ||
} | ||
remove | ||
{ | ||
} | ||
} | ||
public static implicit operator C(int i) | ||
{ | ||
return null; | ||
} | ||
static C() | ||
{ | ||
} | ||
public C() | ||
{ | ||
Console.WriteLine(); | ||
} | ||
~C() | ||
{ | ||
} | ||
void IDisposable.Dispose() | ||
{ | ||
} | ||
private static void Main() | ||
{ | ||
C c = new C(); | ||
c.Event += delegate | ||
{ | ||
}; | ||
_ = c.Property; | ||
_ = c.ExpressionProperty; | ||
_ = c[0]; | ||
_ = c[""]; | ||
_ = (C)1; | ||
Local(); | ||
static void Local() | ||
{ | ||
Console.WriteLine(); | ||
} | ||
} | ||
} | ||
]]></file> | ||
</files> | ||
<methods> | ||
</methods> | ||
<method-spans> | ||
</method-spans> | ||
</symbols> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters