#include "stdafx.h"
public ref class MyClass
{
public:
staticconstint i = 15;
literal int j = 25;
};
template<int i>
void f()
{ }
int main()
{
//int a1[MyClass::i]; // error: static const MyClass::i isn't considered a constant
int a2[MyClass::j]; // OK
//f<MyClass::i>(); // error
f<MyClass::j>(); // OK
}