We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b88960 commit ffa0713Copy full SHA for ffa0713
src/compiler/scala/tools/nsc/backend/llvm/GenLLVM.scala
@@ -893,8 +893,8 @@ abstract class GenLLVM extends SubComponent {
893
}
894
895
def exportFunction(m: IMethod): Seq[ModuleComp] = {
896
- m.symbol.getAnnotation(ForeignExportAnnotSym) match {
897
- case Some(AnnotationInfo(_,List(Literal(Constant(foreignSymbol: String))),_)) => {
+ m.symbol.getAnnotation(ForeignExportAnnotSym).get match {
+ case AnnotationInfo(_,List(Literal(Constant(foreignSymbol: String))),_) => {
898
val methType = m.symbol.info
899
if (!m.symbol.isStatic) {
900
error("Only object methods can be exported"); Seq.empty
0 commit comments