xp-forge / partial

Partials: Compile-time metaprogramming
0 stars 0 forks source link

Respect keywords #15

Closed thekid closed 8 years ago

thekid commented 8 years ago
<?php namespace text\vcal;

use lang\partial\Value;

class Event implements \lang\Value {
  use Event\is\Value;

  private $class, /* ... */;
}

Raises the following error: Uncaught error: Parse error (syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING))