diff --git a/BeefLibs/corlib/src/Compiler.bf b/BeefLibs/corlib/src/Compiler.bf index 1be6d59d..1b60811b 100644 --- a/BeefLibs/corlib/src/Compiler.bf +++ b/BeefLibs/corlib/src/Compiler.bf @@ -201,11 +201,10 @@ namespace System outFileName.Append(name); outText.AppendF( $""" - namespace {Namespace} + namespace {Namespace}; + + class {name} {{ - class {name} - {{ - }} }} """); } diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index 976e0102..36179287 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -11213,14 +11213,13 @@ namespace IDE """ using System; - namespace {} + namespace {}; + + class {} {{ - class {} + public static int Main(String[] args) {{ - public static int Main(String[] args) - {{ - return 0; - }} + return 0; }} }} """, namespaceName, className);