Issue #1274 has been updated by admin.

Status changed from New to Unreviewed


----------------------------------------
Bug #1274: class names cannot begin with a digit
http://reductivelabs.com/redmine/issues/show/1274

Author: marthag
Status: Unreviewed
Priority: Normal
Assigned to: community
Category: language
Target version: 
Complexity: Unknown
Patch: None
Stage: Unreviewed


While a digit-only class name works, a class name that begins with one or more 
digits followed by a letter fails:

<pre>
# cat test.pp
class 1foo {
 notice("test")
}
# puppet test.pp
Could not parse for environment development: Syntax error at 'foo' at 
/tmp/test.pp:1
# cat test1.pp
class 1 {
 notice("test")
}
# puppet test1.pp
# cat test2.pp
class foo1 {
 notice("test")
}
# puppet test2.pp
# cat test3.pp
class f1oo {
 notice("test")
}
# puppet test3.pp
# cat test4.pp
class 123foo {
 notice("test")
}
# puppet test4.pp
Could not parse for environment development: Syntax error at 'foo' at 
/tmp/test4.pp:1
#

</pre>


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to