when i call a function that comes from an other assembly and its accessibility level is 'internal', the intellisense should figure out a syntax error, such as "XXX is inaccessible due to its protection level". but it doesn't. without doubt, compilation failed.
however, after i change the function's accessibility level to an other level, such as 'private', it figures out the syntax error.
what makes 'internal' so different, and why? or it just a bug in visual studio?
sample code:
static void Main(string[] args)
{
var t= new AssemblyBCode();
t.test();
}
code in the other assembly (referenced solution):
public class AssemblyBCode
{
internal void test() { }
}