mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 21:20:33 +00:00
Add support for struct types, following p0561. (#856)
This commit is contained in:
1 parent
d157d96338
commit
c4e40aaa86
20 files changed
+674
-44
No files matched your search
+5
-3
@@ -11,10 +11,12 @@
|
||||
|
||||
package ExecutableSemanticsTest api;
|
||||
|
||||
fn DoNothing() {
|
||||
// Empty block
|
||||
}
|
||||
|
||||
fn main() -> i32 {
|
||||
var x: i32 = 0;
|
||||
{
|
||||
// empty block
|
||||
}
|
||||
DoNothing();
|
||||
return x;
|
||||
}
|
||||
Reference in new issue
Block a user