# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
    
from iptest.assert_util import *


add_clr_assemblies("loadorder_4")

# namespace NS {
#     public class Target {
#         public static string Flag = typeof(Target).FullName;
#     }
#     public class Target<T> {
#         public static string Flag = typeof(Target<>).FullName;
#     }
# }

import NS
AreEqual(dir(NS), ['Target'])

add_clr_assemblies("loadorder_4a")

# namespace NS {
#     public class Target {
#         public static string Flag = typeof(Target).FullName + "_Same";
#     }
# }

AreEqual(dir(NS), ['Target'])

AreEqual(NS.Target.Flag, "NS.Target_Same")
AreEqual(NS.Target[int].Flag, "NS.Target`1")

AreEqual(dir(NS), ['Target'])

AreEqual(NS.Target[int].Flag, "NS.Target`1")
