Is there a way to get the direct parents of a ClassSymbol in macro context?
问题 Im trying to get the direct super classes / traits of a ClassSymbol. The method baseClasses() does not work for me as it also includes the super super.. types. The java.lang.Class.getSuperclass() and java.lang.Class.getInterfaces() would actually be sufficient for my use case, but I can't find a way to go from ClassSymbol to java.lang.Class in macro context! 回答1: If you use macro - you can't obtain runtime-object Class for class which does not exist (loaded) in compile-time (so you can't have