-
Notifications
You must be signed in to change notification settings - Fork 0
Preserve executable output kind when evaluating generator methods (top-level statements support) #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve executable output kind when evaluating generator methods (top-level statements support) #78
Changes from all commits
6252c9d
345dec8
6fae65c
bc034b2
3ce68ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -57,6 +57,39 @@ public static class GenHost | |||||||||||
| Assert.That(result.value, Is.EqualTo("hello")); | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| [Test] | ||||||||||||
| public void ExecuteSimpleGeneratorMethod_ExecutesWhenCompilationHasTopLevelStatements() | ||||||||||||
| { | ||||||||||||
| CSharpCompilation compilation = CreateCompilation(""" | ||||||||||||
| using System; | ||||||||||||
|
|
||||||||||||
| Console.WriteLine("warmup"); | ||||||||||||
|
Comment on lines
+64
to
+66
|
||||||||||||
| using System; | |
| Console.WriteLine("warmup"); | |
| int _ = 0; |
Uh oh!
There was an error while loading. Please reload this page.