Skip to content

Multiline templates not supported in sketch #4067

Closed
@xEtherealx

Description

@xEtherealx

The following sketch fails to compile:

#include "Arduino.h"
template <typename T> T test (T a) { return a;}
void setup () { }
void loop () { }

With error: 'T' does not name a type

This is with 1.6.5 on a mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions