package foo:foo; interface types { enum level { info, debug, } } interface console { use types.{level}; log: func(level: level, msg: string); }