Version Used: Visual Studio 2017 15.0.0-RTW+26228.4
Code to Reproduce:
public class Foo<T> where T : Bar // Generate class 'Bar'
{
}
Actual Behavior:
public class Foo<T> where T : Bar // CS0703 Inconsistent accessibility: constraint type 'Bar' is less accessible than 'Foo<T>'
{
}
internal class Bar
{
}
Expected Behavior:
public class Foo<T> where T : Bar
{
}
public class Bar
{
}
Version Used: Visual Studio 2017 15.0.0-RTW+26228.4
Code to Reproduce:
Actual Behavior:
Expected Behavior: