Having the same plural and singular word for a noun fails
Bug #503190 reported by
Matt Jones
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rootin Tootin |
Fix Released
|
High
|
Unassigned |
Bug Description
Create a new project with:
rootintootin name:journal port:3000 db_user:root db_password:letmein
cd journal
./gen create database
./gen create noun singular:note plural:note
./gen create scaffold note title:string content:string
./gen migrate
./run
The "./run" will fail. If you look at the compile error in your browser, it will look something like:
note_controller
Changed in rester: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is a side effect of D being a statically typed language. It cannot have a variable named "note" that holds all the notes, and another that holds just the one note:
public class NoteController : ControllerBase {
public Note[] _note;
public Note _note;
}