| // Copyright 2019 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| module test_module; |
| |
| enum GlobalEnum { |
| FIRST, |
| SECOND = 2, |
| }; |
| |
| union Union { |
| bool a; |
| int64 b; |
| }; |
| |
| const string GlobalConst = "testString"; |
| |
| struct Struct { |
| enum StructEnum { |
| SECOND, |
| THIRD, |
| FOURTH = 4, |
| }; |
| |
| bool c; |
| const string StructConst = "structConst"; |
| }; |
| |
| interface Interface { |
| enum InterfaceEnum { |
| FIFTH, |
| SIXTH = 6, |
| }; |
| |
| const bool InterfaceConst = false; |
| |
| DoSomething(); |
| DoSomethingElse(Struct s) => (GlobalEnum e); |
| }; |