From 6761c44636de0835614efc8acb18fe0e7c256602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 25 May 2022 17:13:38 +0900 Subject: [PATCH] Don't use top level statements in the repro app (#69779) I'm finding myself adding `class Program` too often. Top level statements are not helpful here. --- src/coreclr/tools/aot/ILCompiler/repro/Program.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler/repro/Program.cs b/src/coreclr/tools/aot/ILCompiler/repro/Program.cs index 0a97c922c939..9e71394c3732 100644 --- a/src/coreclr/tools/aot/ILCompiler/repro/Program.cs +++ b/src/coreclr/tools/aot/ILCompiler/repro/Program.cs @@ -1,3 +1,12 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; -Console.WriteLine("Hello world"); +class Program +{ + static void Main() + { + Console.WriteLine("Hello world"); + } +}